<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8" />
  <title>关于 · 表单测试页</title>
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <style>
    body {
      margin: 0;
      font-family: "Microsoft YaHei", sans-serif;
      background: linear-gradient(120deg, #89f7fe, #66a6ff);
      color: #333;
      text-align: center;
      padding: 50px;
    }
    h1 {
      font-size: 40px;
      color: white;
      text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    }
    form {
      margin: 20px auto;
      padding: 20px;
      background: white;
      border-radius: 15px;
      max-width: 400px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.2);
      text-align: left;
    }
    label { display: block; margin: 10px 0 5px; }
    input[type="number"], input[type="text"] {
      width: 100%;
      padding: 10px;
      border-radius: 8px;
      border: 1px solid #ccc;
    }
    button {
      margin-top: 15px;
      padding: 10px 20px;
      background: #66a6ff;
      border: none;
      border-radius: 25px;
      color: white;
      font-weight: bold;
      cursor: pointer;
    }
    button:hover { background: #4c8ef7; }
    a {
      display: inline-block;
      margin-top: 20px;
      text-decoration: none;
      color: white;
      background: #333;
      padding: 8px 16px;
      border-radius: 20px;
    }
  </style>
</head>
<body>
  <h1>表单测试 (GET / POST)</h1>

  <!-- GET 表单 -->
  <form action="/cgi_bin/mysql_conn" method="GET">
    <h2>GET 提交</h2>
    <label for="geta">name：</label>
    <input id="geta" name="name" type="number" value="10" />
    <label for="getb">passwd：</label>
    <input id="getb" name="passwd" type="number" value="20" />
    <button type="submit">GET 提交</button>
  </form>

  <!-- POST 表单 -->
  <form action="/cgi_bin/mysql_conn" method="POST">
    <h2>POST 提交</h2>
    <label for="posta">name：</label>
    <input id="posta" name="name" type="number" value="10" />
    <label for="postb">passwd：</label>
    <input id="postb" name="passwd" type="number" value="20" />
    <button type="submit">POST 提交</button>
  </form>

  <a href="/">返回首页</a>
</body>
</html>
